NAND: Make page, erase, oob size available via cmd_nand
authorMarek Vasut <[email protected]>
Thu, 22 Sep 2011 01:57:26 +0000 (03:57 +0200)
committerScott Wood <[email protected]>
Mon, 3 Oct 2011 23:35:12 +0000 (18:35 -0500)
commitce80ddc1809193bc450b4d1e104d1ab2f9ee8dd2
tree5480eff5e27a0fd7a905a71aed2234c06a3d9e06
parent17d261df18acfab96dcb5e0e078d2fe81a7d70ad
NAND: Make page, erase, oob size available via cmd_nand

The "nand info" and "nand device" now set shell/environment variables:
nand_writesize ... nand page size
nand_oobsize ..... nand oob area size
nand_erasesize ... nand erase block size

Also, the "nand info" command now displays this info.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Detlev Zundel <[email protected]>
[[email protected]: removed unnecessary memsets]
Signed-off-by: Scott Wood <[email protected]>
common/cmd_nand.c